package com.by.entity.sys;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class ModifyUser {

    @NotBlank(message = "用户id不能为空！")
    String id;

    @NotBlank(message = "旧密码不能为空！")
    String oldpwd;

    @NotBlank(message = "新密码不能为空！")
    @Length(min = 6,max = 18,message = "密码长度为6~18位！")
    String newpwd;

    @NotBlank(message = "确认密码不能为空！")
    String confirmpwd;
}
